#
from collections import Counter
from collections import defaultdict
a=[2 ** i for i in xrange(0, 100)]
b=[3 ** i for i in xrange(0, 100)]
c=dict(zip(a,b))
string='asdflsdjfadshfasdhfkaeuf'
coordinates = defaultdict(Counter)
mentionDic=Counter(string)
# print mentionDic
for mention, freq in mentionDic.iteritems():
    for user_id,mention_id in c.iteritems():
     coordinates[user_id][mention_id] += freq

print (coordinates)
# for mention, ids in coordinates.iteritems():
#     for mention1, ids1 in coordinates.iteritems():
#         if mention < mention1:
#             print ids,ids1

# U_all=['asd','2er','fdgdf','asd','asd']
# idx=range(len(U_all))
# node_id=dict(zip(U_all,idx))
# print node_id
# dict=defaultdict(Counter)
# print dict
